
public class Vector implements Structura{
	private int [] elements;
	public void adauga (int elem){
		int buffer = elements[0];
		for (int i=elements.length; i>0; i--)
			elements[i] = elements[i-1];
		elements[0] = buffer;
	}
	public void sterge (int elem){
		for (int i=1; i<elements.length; i++)
			elements[i] = elements[i+1];
	}
	public int getValueAt (int i){
		return elements[i];
	}
	
	/* Constructor:*/
	public Vector(int [] elements){
		this.elements = elements;
	}
}
